import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld';
import Task from '@/components/Task';
import Habit from '@/components/Habit';
import Picker from '@/components/Picker';
import HabitList from '@/components/HabitList';
import Echarts from '@/components/Echarts';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/task',
      name: 'Task',
      component: Task
    },{
      path: '/habit',
      name: 'Habit',
      component: Habit
    },{
      path: '/picker',
      name: 'Picker',
      component: Picker
    },{
      path: '/habitList',
      name: 'HabitList',
      component: HabitList
    },{
      path: '/echarts',
      name: 'Echarts',
      component: Echarts
    }//Echarts
  ]
})
